package com.ict.bills.mapper;

import com.ict.bills.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.jws.soap.SOAPBinding;

/**
 * @Author: Lizbeth9421
 * @Date: 2021/10/10/0:28
 */
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 检查用户登录
     *
     * @param loginname
     * @param password
     * @return
     */
    User checkLogin(@Param("loginname") String loginname, @Param("password") String password);
}